<h2>Bienvenue sur la page de consultation de l'historique</h2>
<div class="menu">
<div id="top">
<form id="createuser" enctype="application/x-www-form-urlencoded"
	action="" method="post">
<dl class="zend_form"><?php
echo $this->form->getElement('id');
echo $this->form->getElement('vendeur');
?><table>
		<tbody>
			<tr>
				<td><?php echo $this->form->getElement('datedebut');
				?></td>
				<td><?php echo $this->form->getElement('types')
				?></td>
			</tr>
			<tr>
				<td><?php echo $this->form->getElement('datefin');
				?></td>
			</tr>
			<tr>
				<td><?php echo $this->form->getElement('send');
				?></td>
				<td><?php echo $this->form->getElement('reset');
				?></td>
			</tr>
		</tbody>
	</table>
</dl>
</form>
</div>
<div>
<table id="historique" cellpadding="0" cellspacing="0" border="0"
	class="display">
	<thead>
		<tr>
			<th>Libellé</th>
			<th>Date</th>
			<th>Client</th>
			<th>Vendeur</th>
			<th>Montant</th>
			<th>Produit</th>
			<th>Quantité</th>
		</tr>
	</thead>
	<tbody><?php
	foreach($this->histo as $h) {
		?><tr>
			<td><?php $h->printv("libelle");
			?></td>
			<td><?php $h->printv("time");
			?></td>
			<td><?php $h->printv("client");
			?></td>
			<td><?php $h->printv("vendeur");
			?></td>
			<td><?php $h->printv("montant");
			?></td>
			<td><?php $h->printv("produit");
			?></td>
			<td><?php $h->printv("varstock");
			?></td>
		</tr><?php }
	?></tbody>
</table>
</div>
<table id="resume">
	<tbody>
		<tr>
			<td>Somme totale :</td>
			<td><?php echo $this->sommeTot." &euro;" ?></td>
		</tr>
		<tr>
			<td>Somme CB :</td>
			<td><?php echo $this->sommeCB." &euro;" ?></td>
		</tr>
		<tr>
			<td>Somme espèce :</td>
			<td><?php echo $this->sommeEsp." &euro;" ?></td>
		</tr>
	</tbody>
</table>
</div>